<template>
	<view class="jl">
		<view class="message_top">
			<view class="message_top_title" :style="{top:computedTop}">领取记录</view>
			<view class="message_top_back" :style="{top:computedTop}" @click="Back">
				<image src="../../static/search/back.png" class="bfbimages"></image>
			</view>
		</view>

		<view class="jl_one">
			<view style="border-bottom: 2rpx solid #ECECEC;">
				<view class="jl_one_L">
					<view class="flex jl_one_L_src">
						<image src="../../static/hbx.png" class="bfbimages"></image>
					</view>
					<text>现金红包</text>
					<view class="jl_one_L_t">随机</view>
					<view class="jl_one_L_t" style="width: 105rpx;">转发佣金</view>
				</view>
				<view class="jl_one_R">￥630.0/50份</view>
			</view>
			<view>
				<text style="font-size: 32rpx;font-weight: bold;color: #333333;">共35人领取</text>
				<text style="font-size: 26rpx;color: #FE4825;font-weight: 500;">进行中</text>
			</view>
		</view>
		
		<view class="jl_list">
			<view class="jl_list_one">
				<view style="display: flex;align-items: center;">
					<view class="Lsrc flex">
						<image src="../../static/logo.png" class="bfbimages"></image>
					</view>
					<text>周杰伦</text>
				</view>
				<text style="font-size: 32rpx;color: #FE4624;">￥98.5</text>
			</view>
			<view class="jl_list_two">抢包时间：2024/05/12 15:30</view>
			<view class="jl_list_two">使用时间：2024/05/12 15:30</view>
			<view class="jl_list_two">转发佣金：<text style="color: #FE4624;">￥6.0</text>/3人领取</view>
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				menuButtonInfo: null,
			}
		},
		computed: {
			computedTop() {
				if (this.menuButtonInfo) {
					return `${this.menuButtonInfo.height * 2 - 6}px`;
				}
				return '0px';
			},
		},
		onLoad() {
			const info = uni.getMenuButtonBoundingClientRect();
			this.menuButtonInfo = info;
		},
		methods: {
			Back() {
				uni.navigateBack()
			}
		}
	}
</script>

<style lang="scss">
	.jl {
		width: 100vw;
		min-height: 100vh;
		float: left;
		background-color: #F6F8FB;

		.message_top {
			width: 100%;
			height: 200rpx;
			position: relative;

			.message_top_title {
				width: 100%;
				text-align: center;
				font-family: PingFang SC, PingFang SC;
				font-weight: bold;
				font-size: 36rpx;
				color: #333333;
				position: absolute;
				left: 0;
				z-index: 2;
			}

			.message_top_back {
				width: 44rpx;
				height: 44rpx;
				position: absolute;
				left: 30rpx;
				z-index: 9;
			}
		}

		.jl_one {
			width: 710rpx;
			height: 174rpx;
			background: #FFFFFF;
			border-radius: 20rpx;
			margin: 20rpx auto 0;
		}

		.jl_one>view {
			width: 650rpx;
			height: 50%;
			display: flex;
			align-items: center;
			justify-content: space-between;
			margin: 0 auto;
		}

		.jl_one_L {
			width: auto;
			display: flex;
			align-items: center;
			font-family: PingFang SC, PingFang SC;
			font-weight: 500;
			font-size: 30rpx;
			color: #333333;
			.jl_one_L_src{
				width: 28rpx;
				height: 28rpx;
				text-align: center;
				line-height: 28rpx;
				margin-right: 10rpx;
			}
			.jl_one_L_t{
				width: 56rpx;
				height: 32rpx;
				background: rgba(254,72,37,0.2);
				border-radius: 4rpx;
				border: 1rpx solid #FE4825;
				font-family: PingFang SC, PingFang SC;
				font-weight: 500;
				font-size: 24rpx;
				color: #FE4825;
				text-align: center;
				line-height:32rpx;
				margin-left: 10rpx;
			}
		}

		.jl_one_R {
			width: auto;
			text-align: right;
			font-family: PingFang SC, PingFang SC;
			font-weight: bold;
			font-size: 32rpx;
			color: #FE4624;

		}

		.jl_one>view>view:nth-child(2) {
			font-family: PingFang SC, PingFang SC;
			font-weight: bold;
			font-size: 32rpx;
			color: #FE4624;
		}
	}
	
	.jl_list{
		width: 710rpx;
		background: #FFFFFF;
		border-radius: 20rpx;
		margin: 20rpx auto 0;
		padding-top: 30rpx;
		padding-bottom: 30rpx;
		.jl_list_one{
			width: 650rpx;
			height: 54rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;
			margin: 0 auto;
			font-family: PingFang SC, PingFang SC;
			font-weight: bold;
			font-size: 32rpx;
			color: #333333;
		}
		.Lsrc{
			width: 54rpx;
			height: 54rpx;
			border-radius: 50%;
			overflow: hidden;
			margin-right: 15rpx;
		}
		
		.jl_list_two{
			width: 650rpx;
			display: flex;
			align-items: center;
			margin: 20rpx auto 0;
			font-family: PingFang SC, PingFang SC;
			font-weight: 500;
			font-size: 26rpx;
			color: #999999;
		}
	}
</style>